package org.ndx.majick.ui.string;

import org.ndx.majick.properties.Property;
import org.ndx.majick.properties.util.PropertyUtils;
import org.ndx.majick.ui.IPropertyUIMetadata;
import org.ndx.majick.ui.object.ObjectPropertyMetadata;

public class StringPropertyMetadata extends ObjectPropertyMetadata implements
		IPropertyUIMetadata {
	/**
	 * By setting this property to true, user assume text is a long one. In such a case, we'll use long editors (JTextArea) and renderers.
	 */
	private final Property<Boolean> longText = PropertyUtils.create(Boolean.class, StringPropertyMetadata.class.getName()+".longEditor", support, false);

	/**
	 * When setting this property to true, user will assume text is a long one.
	 * @return a property allowing user to change text long level.
	 */
	public Property<Boolean> getLongText() {
		return longText;
	}
}
